package com.mrs.exception;

import com.mrs.common.enums.AppHttpCodeEnum;

/**
 * description: SystemException
 * date: 2022/8/8 18:41
 * author: MR.孙
 */
public class SystemException extends RuntimeException{

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public SystemException(AppHttpCodeEnum httpCodeEnum) {
        super(httpCodeEnum.getMsg());
        this.code=httpCodeEnum.getCode();
        this.msg=httpCodeEnum.getMsg();

    }
}
